package com.geek.service;

import com.geek.bean.PageData;
import com.geek.bean.PageParameter;
import com.geek.bean.data.GoodsDetailData;
import com.geek.bean.vo.CategoryVo;
import com.geek.model.MarketGoods;
import com.geek.model.MarketGoodsAttribute;
import com.geek.model.MarketGoodsProduct;
import java.util.List;
import java.util.Map;

public interface GoodsService {
    long count();

    List floorGoodsList(int categoryLimit, int categoryGoodsLimit);

    List<MarketGoods> list(Integer categoryId, int page, int categoryGoodsLimit);

    List<MarketGoods> goodsList(boolean isHot, boolean isNew, int page,int hotLimit);

    GoodsDetailData detail(Integer goodsId, int userId);

    List<MarketGoodsAttribute> getAttributes(Integer goodsId);

    List<MarketGoodsProduct> getProducts(Integer goodsId);

    List<Map> getSpecifications(Integer goodsId);

    MarketGoods findById(Integer id);

    PageData queryByCategory(Integer categoryId, int page, int limit);

    PageData listHistory(PageParameter pageParameter, Integer categoryId, String keyword, Integer brandId);
}
